home *** CD-ROM | disk | FTP | other *** search
/ Designer's Club 1997 January / Designer's Club 1997 January.iso / pc / ideasrc / main.dir / 00009_Script_9 < prev    next >
Text File  |  1996-12-12  |  2KB  |  87 lines

  1. on startmovie
  2.   global toolH, toolV, gallery
  3.   if toolH = 0 then
  4.     set toolH = 522
  5.     set toolV = 17
  6.   end if
  7.   set the locH of sprite 40 to toolH
  8.   set the locV of sprite 40 to toolV
  9.   set gallery = "slideshow"
  10. end
  11.  
  12. on stopmovie
  13.   global toolH, toolV
  14.   set toolH = the locH of sprite 40
  15.   set toolV = the locV of sprite 40
  16. end
  17.  
  18. on pressit button
  19.   puppetsound "clickdn"
  20.   repeat while the mousedown
  21.     set the visible of sprite button to false
  22.     updatestage
  23.   end repeat
  24.   set the visible of sprite button to true
  25.   puppetsound "clickup"
  26. end
  27.  
  28. on tools
  29.   go the frame
  30.   repeat with n = 41 to 46
  31.     puppetsprite n, true
  32.   end repeat
  33.   repeat with n = 41 to 46
  34.     set the locV of sprite n to the locV of sprite 40 + 26
  35.   end repeat
  36.   set the locH of sprite 41 to the locH of sprite 40 
  37.   set the locH of sprite 42 to the locH of sprite 40 - 86
  38.   set the locH of sprite 43 to the locH of sprite 40 - 48
  39.   set the locH of sprite 44 to the locH of sprite 40 - 3
  40.   set the locH of sprite 45 to the locH of sprite 40 + 41
  41.   set the locH of sprite 46 to the locH of sprite 40 + 82
  42.   updatestage
  43. end tools
  44.  
  45. on rollem
  46.   if rollover (2) then go frame "b"
  47.   if rollover (3) then go frame "a"
  48.   if rollover (4) then go frame "s"
  49.   if rollover (5) then go frame "g"
  50.   if rollover (6) then go frame "i"
  51.   if rollover (7) then go frame "c"
  52. end
  53.  
  54. on rollem2
  55.   if rollover (2) then go frame "ray"
  56.   if rollover (3) then go frame "photo"
  57.   if rollover (4) then go frame "prem"
  58. end
  59.  
  60. on rollem3
  61.   if rollover (2) then 
  62.     go frame "bbb"
  63.   else
  64.     go frame "aaa"
  65.   end if
  66. end
  67.  
  68.  
  69. on keyDown 
  70.   if the key = 1 then set the soundLevel to (1)
  71.   if the key = 2 then set the soundLevel to (2)
  72.   if the key = 3 then set the soundLevel to (3)
  73.   if the key = 4 then set the soundLevel to (4)
  74.   if the key = 5 then set the soundLevel to (5)
  75.   if the key = 6 then set the soundLevel to (6)
  76.   if the key = 7 then set the soundLevel to (7)
  77.   if the key = "S" then
  78.     if the volume of sound 2 = 0 then
  79.       set the volume of sound 2 to the soundlevel * 36
  80.     else set the volume of sound 2 to 0
  81.   end if
  82. end keydown
  83.  
  84.  
  85.  
  86.  
  87.